package org.csu.question.entity.dto;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class UserStatsDTO {
    private Long userId;
    private String username;
    private String nickname;

    // 总体统计
    private Long totalQuestions; // 总答题数
    private Long correctQuestions; // 答对题数
    private Double correctRate; // 总正确率
    private Long totalTimeSpent; // 总答题时长(秒)
    private Double avgTimePerQuestion; // 平均每题用时

    // 最近统计(最近7天)
    private Long recentTotalQuestions;
    private Long recentCorrectQuestions;
    private Double recentCorrectRate;

    // 各知识点统计
    private Map<String, KnowledgePointStatsDTO> knowledgePointStats;

    // 各难度统计
    private Map<String, DifficultyStatsDTO> difficultyStats;

    // 最近答题记录
    private List<AnswerRecordDTO> recentAnswers;

    // 答题趋势数据(最近30天每天的答题情况)
    private List<DailyStatsDTO> dailyTrends;
}
